package etc

type Config struct {
	App struct {
		Version string `yaml:"version"`
		Name    string `yaml:"name"`
		Port    int
		NodeId  int64 `yaml:"node_id"`
		Cpu      int    `yaml:"cpu"`
	}

	Db struct {
		Enable bool `yaml:"enable"`

		Gorm        GormConfig     `yaml:"gorm"`
		Connections []DbConnection `yaml:"connections"`
	}

	Cache struct {
		Redis struct {
			Enable bool   `yaml:"enable"`
			Host   string `yaml:"host"`
			Port   int    `yaml:"port"`
			Db     int    `yaml:"db"`
			Auth   string `yaml:"auth"`
		}
	}

	View struct {
		Enable bool
	}
}
